using System.ComponentModel.DataAnnotations;
using System.Data.Entity.ModelConfiguration;

namespace Inventory.Domain.Models.Mapping
{
    public class MovieGenreMap : EntityTypeConfiguration<MovieGenre>
    {
        public MovieGenreMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            // Table & Column Mappings
            this.ToTable("MovieGenres");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.Title).HasColumnName("Title");
        }
    }
}
